const express=require('express');
const  wearService=require('../services/wearService')
var router=express.Router();

router.use('/cloths/down-details',async (req,res)=>{
    //找出所有的kid wear
    var GET=req.query;
    var kind = GET.kind;
    if(kind==undefined||kind==null||kind=={}||kind==[]){
        res.send({success:false,msg:'data error!'});
    };
    var data=await wearService.findByKind1(kind);
    res.send(data);
});


exports.router=router;